import Index from '../pages/index';
import Class from '../pages/class';
import { Navigate } from 'react-router-dom';

const routes =  [
    {
        name:'首页',
        path:'/index',
        element:<Index/>
    },
    {
        name:'分类',
        path:'/class',
        element:<Class/>
    },
    {
        path:'/',
        element:<Navigate to="/index"/>
    }
]
export default routes
